Foxit PDF RDK
FoxitPDFViewCtrl.PDFViewCtrlModel Class Reference

PDFViewCtrlModel class. More...

Public Member Functions

 addNodePage (pageIndex)
 
 clearAllCacheFiles ()
 
 clearCacheFile (url)
 
 closeDoc ()
 
 constructor (context) openDoc(filePath
 
 convertDisplayViewPtToPageViewPt (displayViewPt, pageIndex)
 
 convertDisplayViewRectToPageViewRect (displayViewRectF, pageIndex)
 
 convertPageViewPtToDisplayViewPt (pageViewPt, pageIndex)
 
 convertPageViewPtToPdfPt (pageViewPt, pageIndex)
 
 convertPageViewRectToDisplayViewRect (pageViewRectF, pageIndex)
 
 convertPageViewRectToPdfRect (pageViewRectF, pageIndex)
 
 convertPdfPtToPageViewPt (pdfPt, pageIndex)
 
 convertPdfRectToPageViewRect (pdfRectF, pageIndex)
 
 getBackgroundColor ()
 
 getCachePages ()
 
 getColorMode ()
 
 getCurrentPage ()
 
 getDisplayMatrix (pageIndex)
 
 getDisplayViewHeight ()
 
 getDisplayViewWidth ()
 
 getHScrollPos ()
 
 getHScrollRange ()
 
 getMappingModeBackgroundColor ()
 
 getMappingModeForegroundColor ()
 
 getPageIndex (displayViewPt)
 
 getPageLayoutMode ()
 
 getPageViewHeight (pageIndex)
 
 getPageViewRect (pageIndex)
 
 getPageViewWidth (pageIndex)
 
 getReflowBackgroundColor ()
 
 getReflowMode ()
 
 getUIExtensionsManager ()
 
 getVisiblePages ()
 
 getVScrollPos ()
 
 getVScrollRange ()
 
 getZoom ()
 
 getZoomMode ()
 
 gotoFirstPage ()
 
 gotoLastPage ()
 
 gotoNextPage ()
 
 gotoNextView ()
 
 gotoPage (pageIndex, devOffsetX, devOffsetY)
 
 gotoPageByPoint (pageIndex, pdfPt)
 
 gotoPrevPage ()
 
 gotoPrevView ()
 
 hasNextView ()
 
 hasPrevView ()
 
 isContinuous ()
 
 isKeepZoomRatio ()
 
 isNightMode ()
 
 isTouchPageView (point)
 
 openDocFromMemory (buffer, password, cb(errorCode);)
 
 openDocFromUrl (url, password, cacheOption, requestOptions< string, string >, cb(errorCode);)
 
 refresh (pageIndex, rect=GeometryUtil.FGRectMakeZero())
 
 saveDoc (filePath, flag)
 
 saveDocWithWriter (fileWriter, flag)
 
 setColorMode (colorMode)
 
 setContinuous (isContinuous)
 
 setHScrollPos (pos)
 
 setKeepZoomRatio (keep)
 
 setMappingModeBackgroundColor (mappingModeBackgroundColor)
 
 setMappingModeForegroundColor (mappingModeForegroundColor) setBackgroundColor(color)
 
 setNightMode (bNightMode)
 
 setPageLayoutMode (lMode)
 
 setReflowBackgroundColor (color)
 
 setReflowMode (reflowMode)
 
 setUIExtensionsManager (manager)
 
 setVScrollPos (pos)
 
 setZoom (factor, devicePt)
 
 setZoomMode (zMode)
 
 slideToNextScreen ()
 
 slideToPreviousScreen ()
 
 zoomToRect (pageIndex, pageViewRect, fitMode)
 

Public Attributes

 _drawModel
 The next view stack.
 
 minimumPressDuration = 300
 
 translateX = 0
 
 translateY = 0
 

Detailed Description

PDFViewCtrlModel class.

Member Function Documentation

◆ addNodePage()

FoxitPDFViewCtrl.PDFViewCtrlModel.addNodePage ( pageIndex  )

Add the task node page of the previous operation

Parameters
pageIndexPage index. Valid range: from 0 to (count-1). count is the page count.

◆ clearAllCacheFiles()

FoxitPDFViewCtrl.PDFViewCtrlModel.clearAllCacheFiles ( )

Clear all the cache files.

See also
openDocFromUrl(string, string, CacheOption, Record<string, string>, (errorCode: FoxitRDKNative.ErrorCode);)

◆ clearCacheFile()

FoxitPDFViewCtrl.PDFViewCtrlModel.clearCacheFile ( url  )

Clear the cache file by the specified url.

Parameters
urlThe url of the document that used in PDFViewCtrlModel.openDocFromUrl
See also
openDocFromUrl(string, string, CacheOption, Record<string, string>, (errorCode: FoxitRDKNative.ErrorCode);)

◆ closeDoc()

FoxitPDFViewCtrl.PDFViewCtrlModel.closeDoc ( )

Close the displayed document.

◆ constructor()

FoxitPDFViewCtrl.PDFViewCtrlModel.constructor (   context)

Open PDF document from a specified PDF file path.

Parameters
pathA PDF file path.
passwordA byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string.
cbThe callback will be called when current document object becomes available or the view control fail to open the document FoxitRDKNative.ErrorCode.

◆ convertDisplayViewPtToPageViewPt()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertDisplayViewPtToPageViewPt ( displayViewPt  ,
pageIndex   
)

Convert display view point to page view point.

Parameters
displayViewPtThe display view point.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The page view point as result.

◆ convertDisplayViewRectToPageViewRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertDisplayViewRectToPageViewRect ( displayViewRectF  ,
pageIndex   
)

Convert display view rectangle to page view rectangle.

Parameters
displayViewRectFThe display view rectangle.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The page view rectangle as result.

◆ convertPageViewPtToDisplayViewPt()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPageViewPtToDisplayViewPt ( pageViewPt  ,
pageIndex   
)

Convert page view point to display view point.

Parameters
pageViewPtThe page view point.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The display view point as result

◆ convertPageViewPtToPdfPt()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPageViewPtToPdfPt ( pageViewPt  ,
pageIndex   
)

Convert page view point to PDF point.

Parameters
pageViewPtThe point on the page view.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The PDF point as result.

◆ convertPageViewRectToDisplayViewRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPageViewRectToDisplayViewRect ( pageViewRectF  ,
pageIndex   
)

Convert page view rectangle to display view rectangle.

Parameters
pageViewRectFThe page view rectangle.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The display view rectangle as result.

◆ convertPageViewRectToPdfRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPageViewRectToPdfRect ( pageViewRectF  ,
pageIndex   
)

Convert page view rectangle to pdf rectangle.

Parameters
pageViewRectFThe page view rectangle.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The pdf rectangle as result

◆ convertPdfPtToPageViewPt()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPdfPtToPageViewPt ( pdfPt  ,
pageIndex   
)

Convert pdf point to page view point coordination.

Parameters
pdfPtThe PDF point.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The page view point as result

◆ convertPdfRectToPageViewRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.convertPdfRectToPageViewRect ( pdfRectF  ,
pageIndex   
)

Convert pdf rectangle to page view rectangle.

Parameters
pdfRectFThe PDF rectangle.
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The page view rectangle as result.

◆ getBackgroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.getBackgroundColor ( )

Gets the background color

Returns
background color

◆ getCachePages()

FoxitPDFViewCtrl.PDFViewCtrlModel.getCachePages ( )

Get cached pages.

Returns
cached pages.

◆ getColorMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.getColorMode ( )

Get the colorMode

Returns
colorMode

◆ getCurrentPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.getCurrentPage ( )

Get the current page index.

Returns
Current page index.

◆ getDisplayMatrix()

FoxitPDFViewCtrl.PDFViewCtrlModel.getDisplayMatrix ( pageIndex  )

Get the display matrix of a specified page.

Parameters
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The display matrix.

◆ getDisplayViewHeight()

FoxitPDFViewCtrl.PDFViewCtrlModel.getDisplayViewHeight ( )

Get display view height.

Returns
Height of the display view.

◆ getDisplayViewWidth()

FoxitPDFViewCtrl.PDFViewCtrlModel.getDisplayViewWidth ( )

Get display view width.

Returns
Width of the display view.

◆ getHScrollPos()

FoxitPDFViewCtrl.PDFViewCtrlModel.getHScrollPos ( )

Get the horizontal scroll position.

Returns
The scrolled left position.

◆ getHScrollRange()

FoxitPDFViewCtrl.PDFViewCtrlModel.getHScrollRange ( )

Get the horizontal scroll range.

Returns
The horizontal scroll range.

◆ getMappingModeBackgroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.getMappingModeBackgroundColor ( )

Get the "background color" while in FoxitRDKNative.Renderer.e_ColorModeMapping or FoxitRDKNative.Renderer.e_ColorModeMappingGray color mode.

You can get the current color mode by using PDFViewCtrlModel.getColorMode

Returns
the "background color"

◆ getMappingModeForegroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.getMappingModeForegroundColor ( )

Get the "foreground color" while in FoxitRDKNative.Renderer.e_ColorModeMapping or FoxitRDKNative.Renderer.e_ColorModeMappingGray color mode.

You can get the current color mode by using getColorMode()

Returns
the "foreground color"

◆ getPageIndex()

FoxitPDFViewCtrl.PDFViewCtrlModel.getPageIndex ( displayViewPt  )

Get the page index with device point.

Parameters
displayViewPtA GeometryUtil.FGPoint value which specifies the device point.
Returns
The page index, starting from 0.

◆ getPageLayoutMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.getPageLayoutMode ( )

Get page layout mode.

Returns
The page layout mode.

◆ getPageViewHeight()

FoxitPDFViewCtrl.PDFViewCtrlModel.getPageViewHeight ( pageIndex  )

Get the height of a specified page view.

Parameters
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
Height of the page view.

◆ getPageViewRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.getPageViewRect ( pageIndex  )

Get the size of a specified page view relative to its parent.

Parameters
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
The rect of the whole page view in the display view coordinate.

◆ getPageViewWidth()

FoxitPDFViewCtrl.PDFViewCtrlModel.getPageViewWidth ( pageIndex  )

Get the width of a specified page view.

Parameters
pageIndexPage index.Valid range: from 0 to (count-1). count is the page count.
Returns
Width of the page view.

◆ getReflowBackgroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.getReflowBackgroundColor ( )

Gets the background color in reflow mode

Returns
The background color in reflow mode

◆ getReflowMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.getReflowMode ( )

Get the reflow mode

Returns
The reflow mode. Please refer to values starting from FoxitRDKNative.ReflowPage.e_Normal and this can be one or combination of these values. Default value: FoxitRDKNative.ReflowPage.e_Normal|FoxitRDKNative.ReflowPage.e_WithImage.

◆ getUIExtensionsManager()

FoxitPDFViewCtrl.PDFViewCtrlModel.getUIExtensionsManager ( )

Get UI extensions manager.

Returns
An UIExtensionsManager object which represents the UI extensions manager.

◆ getVisiblePages()

FoxitPDFViewCtrl.PDFViewCtrlModel.getVisiblePages ( )

Get an integer array which specifies indexes of current visible pages.

Returns
The indexes array for current visible pages.

◆ getVScrollPos()

FoxitPDFViewCtrl.PDFViewCtrlModel.getVScrollPos ( )

Get the vertical scroll position.

Returns
The scrolled top position.

◆ getVScrollRange()

FoxitPDFViewCtrl.PDFViewCtrlModel.getVScrollRange ( )

Get the vertical scroll range.

Returns
The vertical scroll range.

◆ getZoom()

FoxitPDFViewCtrl.PDFViewCtrlModel.getZoom ( )

Get the zoom factor.

Returns
Zoom factor. Default valid range from 1.0f to 8.0f. 1.0f is the value of the fit page mode (the initial model).

◆ getZoomMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.getZoomMode ( )

Get the current zoom mode.

It should be one of constant definitions PDF_ZOOM_MODE.

Returns
The current zoom mode.

◆ gotoFirstPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoFirstPage ( )

Go to the first page.

◆ gotoLastPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoLastPage ( )

Go to the last page.

◆ gotoNextPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoNextPage ( )

Go to the next page.

◆ gotoNextView()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoNextView ( )

Go to next view.

◆ gotoPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoPage ( pageIndex  ,
devOffsetX  ,
devOffsetY   
)

Go to a specified page, then move to a specified position in display view coordinate system.

The new position is specified by offset X and offset Y.
Here, the left-top corner of display view coordinate system is treated as the base point. Offset X and offset Y means the offset values from left-top corner of page view coordinate system to the base point in display view coordinate system.

Parameters
pageIndexPage index. Valid range: from 0 to (count-1). count is the page count.
devOffsetXOffset X value in display view coordinate system.
devOffsetYOffset Y value in display view coordinate system.

◆ gotoPageByPoint()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoPageByPoint ( pageIndex  ,
pdfPt   
)

Go to a specified page, then move to a specified position in PDF coordinate.

Parameters
pageIndexPage index. Valid range: from 0 to (count-1). count is the page count.
pdfPtThe pdf point.

◆ gotoPrevPage()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoPrevPage ( )

Go to the previous page.

◆ gotoPrevView()

FoxitPDFViewCtrl.PDFViewCtrlModel.gotoPrevView ( )

Go to previous view.

◆ hasNextView()

FoxitPDFViewCtrl.PDFViewCtrlModel.hasNextView ( )

Check if current view control has a next view.

Returns
true means current view control has a next page view. false means current view control does not have a next page view.

◆ hasPrevView()

FoxitPDFViewCtrl.PDFViewCtrlModel.hasPrevView ( )

Check if current view control has a previous view.

Returns
true means current view control has a previous page view. false means current view control does not have a previous page view.

◆ isContinuous()

FoxitPDFViewCtrl.PDFViewCtrlModel.isContinuous ( )

Whether the page layout mode is continuous. Note: It's invalid for PAGE_LAYOUT_MODE.REFLOW mode.

Returns
true means page layout mode is continuous.

◆ isKeepZoomRatio()

FoxitPDFViewCtrl.PDFViewCtrlModel.isKeepZoomRatio ( )

Get whether to keep the zoom ratio when turning pages in non-continuous page mode.

Returns
true means to keep the zoom ratio when turning pages in non-continuous page mode.

◆ isNightMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.isNightMode ( )

Check if it's night mode

Returns
true means is the night mode

◆ isTouchPageView()

FoxitPDFViewCtrl.PDFViewCtrlModel.isTouchPageView ( point  )

Whether to click page view

Parameters
pointA GeometryUtil.FGPoint value which specifies the device point.
Returns
The Whether to click page view

◆ openDocFromMemory()

FoxitPDFViewCtrl.PDFViewCtrlModel.openDocFromMemory ( buffer  ,
password  ,
cb(errorCode);   
)

Open the PDF document from memory buffer.

Parameters
bufferA memory buffer, containing the serialized document.
sizeThe size of memory buffer. It should be above 0.
passwordA byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string.
cbThe callback will be called when current document object becomes available or the view control fail to open the document FoxitRDKNative.ErrorCode.

◆ openDocFromUrl()

FoxitPDFViewCtrl.PDFViewCtrlModel.openDocFromUrl ( url  ,
password  ,
cacheOption  ,
requestOptions< string, string >  ,
cb(errorCode);   
)

Open PDF document from a specified URL.

Note: In the first, maybe open document from cache if there is. You should PDFViewCtrlModel.clearCacheFile to delete the cache file.

Parameters
urlThe url of the document to open. It supports HTTP and HTTPS.
passwordA byte array which specifies the password used to load the PDF document content. It can be either user password or owner password. If the PDF document is not encrypted by password, just pass an empty string.
cacheOptionThe cache option used to download the PDF file, may be
null
.
requestOptionsThe request properties that HTTP requires, may be
null
.
cbThe callback will be called when current document object becomes available or the view control fail to open the document FoxitRDKNative.ErrorCode.

◆ refresh()

FoxitPDFViewCtrl.PDFViewCtrlModel.refresh ( pageIndex  ,
rect  = GeometryUtil.FGRectMakeZero() 
)

Refresh a specified rectangle area in a specified page.

Parameters
pageIndexPage index. Valid range: from 0 to (count-1). count is the page count.
rectThe specified rectangle, in page view coordinate system.

◆ saveDoc()

FoxitPDFViewCtrl.PDFViewCtrlModel.saveDoc ( filePath  ,
flag   
)

Save the displayed document to a specified file path with saving flag.

Parameters
filePathFile path for the new saved PDF file.
flagDocument saving flags. It can be one or combination of constant definitions e_saveFlagXXX.

◆ saveDocWithWriter()

FoxitPDFViewCtrl.PDFViewCtrlModel.saveDocWithWriter ( fileWriter  ,
flag   
)

Save the displayed document to a specified file writer callback with saving flag.

Parameters
fileWriterFile writer callback for the new saved PDF file.
flagDocument saving flags. It can be one or combination of constant definitions e_saveFlagXXX.

◆ setColorMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.setColorMode ( colorMode  )

Set color mode.

If this function is not called, default value FoxitRDKNative.Renderer.e_ColorModeNormal will be used.

Parameters
colorModeColor mode value. It should be one of following values:

◆ setContinuous()

FoxitPDFViewCtrl.PDFViewCtrlModel.setContinuous ( isContinuous  )

set page layout mode to continuous. Note: It's invalid for PAGE_LAYOUT_MODE.REFLOW mode.

Parameters
isContinuoustrue means page layout mode use continuous.
See also
PAGE_LAYOUT_MODE

◆ setHScrollPos()

FoxitPDFViewCtrl.PDFViewCtrlModel.setHScrollPos ( pos  )

Set the horizontal scroll position.

Parameters
posNew horizontal scroll position. If this value is out of range of current view, it will only be displayed within the last view region.

◆ setKeepZoomRatio()

FoxitPDFViewCtrl.PDFViewCtrlModel.setKeepZoomRatio ( keep  )

Set whether to keep the zoom ratio when turning pages in non-continuous page mode

Parameters
keeptrue means to keep the zoom ratio when turning pages in non-continuous page mode.

◆ setMappingModeBackgroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.setMappingModeBackgroundColor ( mappingModeBackgroundColor  )

Set the "background color" will be work in FoxitRDKNative.Renderer.e_ColorModeMapping or FoxitRDKNative.Renderer.e_ColorModeMappingGray color mode.

Please call the function PDFViewCtrlModel.setColorMode after setting the new "background color".

Parameters
mappingModeBackgroundColorThe "background color". Format: 0xAARRGGBB.

◆ setMappingModeForegroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.setMappingModeForegroundColor ( mappingModeForegroundColor  )

Set the "foreground color" will be work in FoxitRDKNative.Renderer.e_ColorModeMapping or FoxitRDKNative.Renderer.e_ColorModeMappingGray color mode.

Please call the function PDFViewCtrlModel.setColorMode after setting the new "foreground color".

Parameters
mappingModeForegroundColorThe "foreground color". Format: 0xAARRGGBB. Set the background color for current view.
colorNew background color. Format: 0xRRGGBB.

◆ setNightMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.setNightMode ( bNightMode  )

Set night mode.

Parameters
bNightModetrue means to use night mode. false means not to use night mode.

◆ setPageLayoutMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.setPageLayoutMode ( lMode  )

Set page layout mode.

Parameters
lModePage layout mode. It should be one of constant definitions
See also
PAGE_LAYOUT_MODE.

◆ setReflowBackgroundColor()

FoxitPDFViewCtrl.PDFViewCtrlModel.setReflowBackgroundColor ( color  )

Sets the page background color in reflow mode. Should called before PDFViewCtrlModel.setPageLayoutMode

Parameters
colorthe background color to be used.

◆ setReflowMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.setReflowMode ( reflowMode  )

Set the reflow mode

Parameters
reflowModeRe-flow mode. It should be one or a combination of the following enumeration definitions. Default value: FoxitRDKNative.ReflowPage.e_Normal|FoxitRDKNative.ReflowPage.e_WithImage. Please refer to values starting from FoxitRDKNative.ReflowPage.e_Normal and this can be one or combination of these values.

◆ setUIExtensionsManager()

FoxitPDFViewCtrl.PDFViewCtrlModel.setUIExtensionsManager ( manager  )

Set UI extensions manager.

Parameters
managerAn UIExtensionsManager object to be set.

◆ setVScrollPos()

FoxitPDFViewCtrl.PDFViewCtrlModel.setVScrollPos ( pos  )

Set the vertical scroll position.

Parameters
posNew vertical scroll position. If this value is out of range of current view, it will only be displayed within the last view region.

◆ setZoom()

FoxitPDFViewCtrl.PDFViewCtrlModel.setZoom ( factor  ,
devicePt   
)

Set the zoom factor and re-render by using the given point as the zoom center.

You can call PDFViewCtrlModel.setMinZoomLimit and PDFViewCtrlModel.setMaxZoomLimit to change the limitation.

Parameters
devicePtThe device point.
factorNew zoom factor. Default valid range from 1.0f to 8.0f. 1.0f is the value of the fit page mode (the initial model).

◆ setZoomMode()

FoxitPDFViewCtrl.PDFViewCtrlModel.setZoomMode ( zMode  )

Set zoom mode.The default value of PDF_ZOOM_MODE.FIT_WIDTH.

Note: When you set zoom mode to custom, it indicates that the page is in a custom state and will not cause any changes to the page.

Parameters
zModeNew zoom mode. It should be one of constant definitions PDF_ZOOM_MODE.

◆ slideToNextScreen()

FoxitPDFViewCtrl.PDFViewCtrlModel.slideToNextScreen ( )

Slide to next screen

◆ slideToPreviousScreen()

FoxitPDFViewCtrl.PDFViewCtrlModel.slideToPreviousScreen ( )

Slide to pre screen

◆ zoomToRect()

FoxitPDFViewCtrl.PDFViewCtrlModel.zoomToRect ( pageIndex  ,
pageViewRect  ,
fitMode   
)

Zoom to a specific area of the page content so that it is visible on the screen. if you want to exit zoom, you can call setZoomMode.

You can call PDFViewCtrlModel.setMinZoomLimit and PDFViewCtrlModel.setMaxZoomLimit to change the limitation.

Parameters
pageIndexThe page index which page the rectangle is on.
pageViewRectA rectangle defining an area of the page content view. The rectangle should be in the coordinate space of the page view.
fitModeThe fit mode that used to calculate the zoom ratio. PDF_ZOOM_FIT_RECT_MODE.

Member Data Documentation

◆ minimumPressDuration

FoxitPDFViewCtrl.PDFViewCtrlModel.minimumPressDuration = 300

Minimum long press interval(ms).

◆ translateX

FoxitPDFViewCtrl.PDFViewCtrlModel.translateX = 0

Set component translateX.

◆ translateY

FoxitPDFViewCtrl.PDFViewCtrlModel.translateY = 0

Set component translateX.